package com.trw.trp.bean;

import java.util.List;

public class ListBean {

	private long id;
	private String name;
	private String desc;
	private List<ItemBean> itemList;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public List<ItemBean> getItemList() {
		return itemList;
	}

	public void setItemList(List<ItemBean> itemList) {
		this.itemList = itemList;
	}

	@Override
	public String toString() {
		return "ListBean [id=" + id + ", name=" + name + ", desc=" + desc
				+ ", itemList=" + itemList + "]";
	}

	public static class ItemBean {
		String name;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		@Override
		public boolean equals(Object o) {
			if (o != null && o instanceof ItemBean) {
				if (name == null) {
					return ((ItemBean) o).name == null;
				} else {
					return name.equals(((ItemBean) o).name);
				}
			}
			return false;
		}

		@Override
		public String toString() {
			return "ItemBean [name=" + name + "]";
		}

	}

}
